<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Pragma" content="no-cache"> 
	<meta http-equiv="Cache-Control" content="no-cache"> 
	<meta http-equiv="Expires" content="0"> 
	<title>FLOWMETER</title>
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/bootstrap/easyui.css">
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css">
	<script type="text/javascript" src="../js/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../js/extEasyUI.js?v=201305241044" charset="utf-8"></script>
	<script type="text/javascript" src="../js/extJquery.js?v=201305301341" charset="utf-8"></script>

	
	<script type="text/javascript">
	
		
		$(function() {
			
			load();
			
		});
		

		function save(){
			
			$.messager.progress();
			
			$('#ftype').form('submit', {
				url:'../report/setConfig.do',
				success: function(){
					$.messager.progress('close');	// hide progress bar while submit successfully
				}
			});
			
		}
		
		function load(){
			
			$.messager.progress();
			$('#ftype').form('load', '../report/getConfig.do');
			$.messager.progress('close');
			
		}
		
	</script>
	
	
</head>
<body>

	<div style="margin:10px 0;"></div>
	
	<div class="easyui-panel" title="配置信息" style="width:600px">
	
		<div style="padding:5px 60px 5px 60px">

		    <form id="ftype" method="post">
		    	<table>
		    		<tr>
		    			<td>上报检测功能:</td>
		    			<td>
							<input type="radio" name=enabled value="true">启用
	    					<input type="radio" name="enabled" value="false">禁用				
						</td>
		    		</tr>		    	
	    				  
		    		<tr>
		    			<td>平均处理数量:</td>
		    			<td>
		    				<input name="averages" type="text" value="">
						</td>
		    		</tr>	    				  
	    				    	
		    		<tr>
		    			<td>N，2的N次方即为FFT数量:</td>
		    			<td>
		    				<input name="powerOfFFT" type="text" value="">
						</td>
		    		</tr>
		    		
		    		<tr>
		    			<td>积分数值序号:</td>
		    			<td>
		    				<input name=integrateExpression type="text" value="">
						</td>
						<td>毫秒</td>
		    		</tr>
		    		
		    		<tr>
		    			<td>额外保存目录:</td>
		    			<td>
		    				<input name=extern type="text" value="">		
						</td>
		    		</tr>			    		
			    		
		    	</table>
		    </form>
	    
	    </div>
	    
	    <div style="padding:5px 60px 5px 60px">
		
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width:80px" onclick="save()">应用</a>
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no'" style="width:80px" onclick="load()">刷新</a>
			
		</div>	
	    
	</div>	

</body>
</html>